package com.yqz.sys.mapper;

import com.yqz.common.base.mapper.BaseMapper;
import com.yqz.sys.form.CompUserForm;
import com.yqz.sys.query.CompUserQuery;
import com.yqz.sys.vo.CompUserVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompUserMapper extends BaseMapper<CompUserVO, CompUserQuery, CompUserForm> {

    CompUserVO findOneByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);

    Integer updateByPassword(@Param("password") String password, @Param("id") Integer id);

    List<CompUserVO> findAllByRole(@Param("rId") Integer rId, @Param("state") Integer state, @Param("compId") Integer compId);
}